package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum ScanRideValidateErr {
    previous_customer(0, "您已注册过有滴打车"),
    duplicate_uuid(1, "您的设备被使用过"),
    distance_far(2, "距离过远"),
    continuous_area(3, "相同区域"),
    once_discounted(4, "您已使用过该优惠"),
    no_sale(5, "没有活动"),
    non_authorize_locate(6, "乘客没有打开定位"),
    had_order(7, "不能使用立减优惠"),
    not_in_same_region(8, "司机和乘客不在同一运营区");

    @EnumValue
    private final int code;
    private final String desc;

    ScanRideValidateErr(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
